home *** CD-ROM | disk | FTP | other *** search
- Hi,
-
- I've incorporated some simple statistics collection in DVIEW which gave
- some numbers that are interesting for the optimization. The figures are
- approximate averages over more than 200 drawings from five different levels.
-
- Function Calls Internal loops
- (1) (2)
- Addfloor 150 1100
- Addwall 50 1700
- Coldraw 600
- Rowdraw 1000
- Drawnode 200
- Drawssector 100 300
- Loadseg 150 1600 400
-
- Time for
- structure setup: 0.28
- actual drawing: 0.08
- chunky to planar: 0.11
-
- >From this data and some more examining of the code, I've come to the
- conclusion that we'll never get anything close to adequate performance
- running the 'structure setup' engine on the '030.
- (I'd be glad to hear a different opinion. ;-)
- I am, however, almost certain that the necessary data from the .WAD can
- be held in the DSPs RAM. The original 'structure engine' used a number
- of large arrays, though, which would not have fit. Fortunately, I believe
- I have found a way to get rid of almost all of that.
-
- Finally, I've given some thought to the sprite drawing and discovered
- that it will be even more tricky than I previously thought. The clipping
- against walls and floors will be quite difficult. Perhaps even to such
- a degree that the extra arrays I mentioned above must actually be
- re-inserted, which would be very bad.
- If you have any ideas on that I'd be glad to hear about them, since I'm
- afraid it will be a major stumbling block for the project.
-
- Regards,
- Johan
-
- --
- Chalmers University | Why are these | e-mail: d8klojo@dtek.chalmers.se
- of Technology | .signatures | rand@cd.chalmers.se
- | so hard to do | www/ftp: rand.thn.htu.se
- Gothenburg, Sweden | well? | (MGIFv5 and QLem)
-
-